package router

import (
	"k8s-admin/controller/kubernetes"
	"k8s-admin/middleware"

	"github.com/gin-gonic/gin"
)

func Node(r *gin.Engine) {
	node := r.Group("node/:cid", middleware.ChecKToken())
	node.Use(middleware.K8sCache(), middleware.CasbinMiddle())
	node.Use(middleware.ChecKToken())
	{
		node.GET("listK8sCluster", kubernetes.GetListK8sNode)
		node.GET("getK8sClusterNodeDetail", kubernetes.GetK8sClusterNodeDetail)
	}
}
